package com.lanxiao.cloud.common.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

/**
 * @author ：qiaoliang
 * @date ：2021-08-19
 */
@ApiModel("分页查询返回模型")
public class ResultModel<T> implements Serializable {
  @ApiModelProperty(value = "集合数据", required = true)
  private List<T> list;
  @ApiModelProperty(value = "总条数", required = true)
  private int total;

  public ResultModel(List<T> list, int total) {
    this.list = list;
    this.total = total;
  }

  public List<T> getList() {
    return list;
  }

  public void setList(List<T> list) {
    this.list = list;
  }

  public int getTotal() {
    return total;
  }

  public void setTotal(int total) {
    this.total = total;
  }
}
